unit time job scheduling problem